package com.detection.dahua.service;

import com.detection.dahua.model.video.videoReplay.HlsPlaybackRequest;
import com.detection.dahua.model.video.videoReplay.HlsPlaybackResponse;
import com.detection.dahua.model.video.videoReplay.RegularVideoRecordRequest;
import com.detection.dahua.model.video.videoReplay.RegularVideoRecordResponse;

public interface IDahuaVideoReplayService {

    /**
     * 获取录像回放hls拼接流地址
     * @param protocol  协议类型，http、https
     * @param ip 平台ip
     * @param port hls录像回放端口
     * @param channelId 通道编码
     * @param streamType 码流类型：1-主码流，2-辅码流
     * @param recordType 录像类型:0-设备录像，1-普通录像(属于中心录像)，2-报警录像(属于中心录像)，81-补录录像(属于中心录像)，82-报警预录录像(属于中心录像)
     * @param beginTime 录像开始时间
     * @param endTime 录像结束时间
     * @param token 认证接口返回的access_token
     * @return
     */
    public String getCallbackJointHlsUrl(String protocol,String ip,String port, String channelId,String streamType,String recordType,String beginTime,String endTime, String token);

    /**
     * 查询普通录像信息列表
     * @param regularVideoRecordRequest
     * @return
     */
    public RegularVideoRecordResponse getRegularVideoRecords(RegularVideoRecordRequest regularVideoRecordRequest);

    /**
     * HLS、RTMP录像回放（FLV不支持）
     * @param hlsPlaybackRequest
     * @return
     */
    public HlsPlaybackResponse getPlayBackHlsUrl(HlsPlaybackRequest hlsPlaybackRequest);
}
